/**
 * Created by cherry
 */

import api from '../../api/api';
import * as types from '../mutation';


const state = {
  isBack:true,
  isSearch:true,
  isCircle:true,
  isList:false
};

const getters = {
   comConfig:state =>state

};

const actions = {
  comConfig({commit},settings){
      commit(types.COMM_CONF,settings)
  }
}

const mutations = {
  [types.COMM_CONF](state,settings){
      state=Object.assign(state,settings)
  }
}


export default{
    state,
    getters,
    actions,
    mutations
}
